<%
  #File:    /app/views/manage/permissions/show_role.rhtml
  #Author:  Andrew Stone
  #Created: 04.24.2006
%>
  
<%=start_medium_div_wrapper%>
  <div id="page_title">Showing Role id: <%=@role.id%></div>
  <div id="medium">
    <table>
      <tbody>
        <tr>
          <td class="req_label">Name:</td>
          <td class="data">
            <%=h(@role.name)%>
          </td>
        </tr>
        <tr>
          <td class="req_label">* Get Contact Info:</td>
          <td class="data">
            <%=h(@role.gather_contact_info)%>
          </td>
        </tr>
        <tr>
          <td class="req_label">* Get Address Info:</td>
          <td class="data">
            <%=h(@role.gather_address_info)%>
          </td>
        </tr>
        <tr>
          <td class="req_list_label">* System Objects:</td>
          <td class="list_data">
            <% 
              sobjs = @role.managed_system_objects
              sobjs.each do |sobject| 
            %>
                <%=h(sobject.name)%><br/> 
            <%
              end %>
          </td>
        </tr>
      </tbody>
    </table>
    <div id="actions">
      <%=secure_links([
          secure_link_to("List",ca("/manage/permissions","list_roles")),
          secure_link_to("Update",ca("/manage/permissions","update_role",@role.id))])%>
    </div>
  </div>
<%=end_div_wrapper%>
